package cn.maidouya.hrm.dto;

import cn.maidouya.hrm.domain.Employee;
import cn.maidouya.hrm.domain.Tenant;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

public class TenantDto {
    @Valid
    private Tenant tenant;
    @Valid
    private Employee employee;
    @NotNull()
    private Long mealId;
    @NotNull
    private String confirmPwd;

    public Tenant getTenant() {
        return tenant;
    }

    public void setTenant(Tenant tenant) {
        this.tenant = tenant;
    }

    public Employee getEmployee() {
        return employee;
    }

    public void setEmployee(Employee employee) {
        this.employee = employee;
    }

    public Long getMealId() {
        return mealId;
    }

    public void setMealId(Long mealId) {
        this.mealId = mealId;
    }

    public String getConfirmPwd() {
        return confirmPwd;
    }

    public void setConfirmPwd(String confirmPwd) {
        this.confirmPwd = confirmPwd;
    }

    @Override
    public String toString() {
        return "TenantDto{" +
                "tenant=" + tenant +
                ", employee=" + employee +
                ", mealId=" + mealId +
                ", confirmPwd='" + confirmPwd + '\'' +
                '}';
    }
}